<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

	protected function _initDoctype()
	{
		//$this->bootstrap('view');
		$view = new Zend_View();

		//$view = $this->getResource('view');
		$view->doctype('HTML5');
		$view->setEncoding('UTF-8');
		$view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
		$view->headTitle()->setSeparator(' - ');
		$view->headTitle('Steve Pathe');
		$view->headLink()->setStylesheet($view->baseUrl().'/css/default.css');  // ********  this is where I have set the stylesheet in the head ********* //////////
		$view->env = APPLICATION_ENV;

		// Add it to the ViewRenderer
		$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
		$viewRenderer->setView($view);
		//Zend_Registry::set('connected','NO');

		return $view;
	}

	/*protected function _initViewHelpers(){

		$view = new Zend_View();
		$view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper');

		$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
		$viewRenderer->setView($view);
		Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

	}*/

	protected function _initNavigation(){
		$this->bootstrap('layout');
		$layout = $this->getResource('layout');
		$view = $layout->getView();

		$config = new Zend_Config_Xml(APPLICATION_PATH.'/configs/navigation.xml', 'nav');
		$navigation = new Zend_Navigation($config);

		$view->navigation($navigation);

	}

}

